<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=<?=$this->config->item('charset');?>">
		<title>食材大全_食物分类_食物相克_热量表_<?=$this->config->item('site_name');?></title>
    	<meta name="keywords" content="<?=$this->config->item('site_description');?>" />
   		<meta name="description" content="<?=$this->config->item('site_keywords');?>" />
   		<link href="/favicon.ico" rel="shortcut icon" type="image/x-icon" />
		<link href="<?=base_url('static/css/global.css')?>" rel="stylesheet" type="text/css" media="screen">
		<link href="<?=base_url('static/css/recipe.css')?>" rel="stylesheet" type="text/css" media="screen">
		<script src="<?=path_res('static/js/jquery.js')?>"></script>
		<script src="<?=path_res('static/js/jquery-ui.min.js')?>"></script>
		<script src="<?=path_res('static/js/functions.js')?>"></script>
		<script src="<?=path_res('static/js/jquery.autocomplete-min.js')?>"></script>
	</head>
	<body>
		<? $this->load->view('header'); ?>
			<div id="main" class="clearfix">
				<form method="get" id="baikesearchForm" action="/search/shicai" accept-charset="utf-8"
				onsubmit="searchShicai();return false;">
					<div class="bk_title">
						<h1>
							食物分类
						</h1>
					</div>
				</form>
				<div class="bxiaobi">
					<?php foreach ($category as $row) :?>
					<div class="fslei">
						<a href="<?=site_url('shicai/cate/'.$row['id'])?>" rel="nofollow">
							<img src="<?=path_res('static/img/shicai/'.$row['id'].'.jpg')?>" alt="<?=$row['title']?>" />
						</a>
						<h2>
							<a href="<?=site_url('shicai/cate/'.$row['id'])?>"><?=$row['title']?></a>
						</h2>
						<p>
							<?php foreach ($this->Shicai_mdl->get_shicai_list_by_pid($row['id'],0,5)->result_array() as $shicai):?>
								<a href="<?=site_url('ingredients/'.$shicai['id'])?>"><?=$shicai[ 'title']?></a>
							<?php endforeach; ?>
						</p>
						<div class="clear">
						</div>
					</div>
					<?php endforeach;?>
				</div>
				<div class="bkright">
					<div class="dpshic">
						<h2>
							热门食材
						</h2>
						<?php $i = 0;?>
						<?php foreach ($this->Shicai_mdl->get_shicai_season(16)->result_array() as $sl):?>
						<?php $i++?>
						<div class="scfo <?php if($i%4!=0){echo 'mrm';}?>">
							<a href="<?=site_url('ingredients/'.$sl['id'])?>" title="<?=$sl['title']?>的做法大全">
								<img src="<?=path_res("".$sl['pic']."")?>" alt="<?=$sl['title']?>">
								<?=$sl['title']?>
							</a>
						</div>
						<?php endforeach; ?>
					</div>
				</div>
			</div>
<? $this->load->view('footer'); ?>